package com.lanhe.teacher.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.lanhe.common.core.domain.BaseEntity;
import com.lanhe.common.xss.Xss;

/**
 * 组表(LhGroup)表实体类
 *
 * @author zhanggl
 * @since 2023-09-14 22:28:45
 */
public class LhGroup extends BaseEntity {

    /** 组id */
    private Long groupId;

    /** 组名称 */
    private String groupName;

    /** 导师名称 */
    private String mentorName;

    /** 老师数量 */
    private Integer teacherNum;

    /** 显示顺序 */
    private Integer orderNum;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;


    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    @Xss(message = "组名称不能包含脚本字符")
    @NotBlank(message = "组名称不能为空")
    @Size(min = 0, max = 30, message = "组名称长度不能超过30个字符")
    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    @Xss(message = "导师名称不能包含脚本字符")
    @NotBlank(message = "导师名称不能为空")
    @Size(min = 0, max = 30, message = "导师名称长度不能超过30个字符")
    public String getMentorName() {
        return mentorName;
    }

    public void setMentorName(String mentorName) {
        this.mentorName = mentorName;
    }

    public Integer getTeacherNum() {
        return teacherNum;
    }

    public void setTeacherNum(Integer teacherNum) {
        this.teacherNum = teacherNum;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("groupId", getGroupId())
                .append("groupName", getGroupName())
                .append("mentorName", getMentorName())
                .append("teacherNum", getTeacherNum())
                .append("orderNum", getOrderNum())
                .append("delFlag", getDelFlag())
                .toString();
    }
}

